lib/repo: Add OSTREE_REPO_METADATA_REF as a well-known metadata store
authorPhilip Withnall <withnall@endlessm.com>
Tue, 11 Jul 2017 19:46:03 +0000 (20:46 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 11 Jul 2017 19:50:32 +0000 (19:50 +0000)
commitacb14648d7fee86932038a815f11e307e3e13052
tree672a64e7850896d4eddb3005c51a1afd212f44ee
parent7d57459e831b562b20e1d3efe99f0dab682d1eac
lib/repo: Add OSTREE_REPO_METADATA_REF as a well-known metadata store

As discussed in https://github.com/ostreedev/ostree/pull/946, the
summary file is becoming an unsigned cache of ref information; any
additional metadata for the repository needs to move elsewhere in order
to remain signed. Introduce OSTREE_REPO_METADATA_REF as the well-known
name of a ref where such metadata can live, as the metadata on
contentless commits.

Don’t yet update the documentation for summary-related methods to
mention this, since it’s still hidden behind the
--enable-experimental-api configure option.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #946
Approved by: cgwalters
apidoc/ostree-experimental-sections.txt
src/libostree/ostree-repo.h